﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WaterlevelContrast.aspx.cs" Inherits="GroundWater.analysis.WaterlevelContrast" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="region" style="width: 98%; font-size:9pt;">
        <table style="width: 100%;">
            <tr>
                <td>前段日期从:</td><td><asp:TextBox runat="server"  id="txtStartDateB"   />&nbsp;<img onclick="WdatePicker({el:$dp.$('txtStartDate')})" src="../js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle" /></td>
                <td>到:</td><td><asp:TextBox runat="server"  id="txtEndDateB"  />&nbsp;<img onclick="WdatePicker({el:$dp.$('txtEndDate')})" src="../js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle" /></td>
                <td>图高：</td><td><asp:TextBox  id="txtHeight" runat="server" Width="50" Text="422" /></td>
            
            </tr>
            <tr>
                <td>后段日期从:</td><td><asp:TextBox runat="server"  id="txtStartDateA"   />&nbsp;<img onclick="WdatePicker({el:$dp.$('txtStartDateA')})" src="../js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle" /></td>
                <td>到:</td><td><asp:TextBox runat="server"  id="txtEndDateA"  />&nbsp;<img onclick="WdatePicker({el:$dp.$('txtEndDateA')})" src="../js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle" /></td>
                <td>图宽：</td><td><asp:TextBox  id="txtWidth" runat="server" Width="50" Text="700" /></td>
            </tr>
            <tr>
                <td>水井:</td><td><asp:DropDownList ID="drpWell" runat="server" 
                DataSourceID="odsWells" DataTextField="Name" DataValueField="Code"   
                EnableViewState="false" 
                AutoPostBack="true" ondatabound="drpWell_DataBound" ></asp:DropDownList></td>
                <td>剖面:</td><td><asp:DropDownList ID="drpSectionPlane" runat="server" 
                DataSourceID="odsSectionPlane" DataTextField="Name" DataValueField="Code"   
                EnableViewState="false" 
                AutoPostBack="true" ></asp:DropDownList> &nbsp;&nbsp;&nbsp;
                </td>
                <td colspan="2"><asp:Button ID="btnAnalysis" runat="server" Text="对比"  onclick="btnAnalysis_Click" /></td>
            </tr>
        </table>
    </div>
   <%-- OnSelectedIndexChanged="drpWell_SelectedIndexChanged" OnSelectedIndexChanged="drpWell_SelectedIndexChanged" --%>
    
<asp:ObjectDataSource ID="odsWells" runat="server" SelectMethod="GetAllWithCode" TypeName="GroundWater.BusinessActions.Well" >
    <%--<SelectParameters>
        <asp:Parameter Name="isStoredProc" Type="Boolean" DefaultValue="False" />
        <asp:Parameter Name="enableCache" Type="Boolean" DefaultValue="True" />
    </SelectParameters>--%>
</asp:ObjectDataSource>

<asp:ObjectDataSource ID="odsSectionPlane" runat="server" SelectMethod="GetAll" TypeName="GroundWater.BusinessActions.SectionPlane" >
    <SelectParameters>
        <asp:Parameter Name="isStoredProc" Type="Boolean" DefaultValue="False" />
        <asp:Parameter Name="enableCache" Type="Boolean" DefaultValue="True" />
    </SelectParameters>
</asp:ObjectDataSource>
    
    <asp:Chart id="chartWaterLevel" runat="server" Palette="BrightPastel" BackColor="#D3DFF0" ImageType="Png" Width="700px" Height="322px" BorderDashStyle="Solid" BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105">
		<titles>
			<asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3" Text="水位同期对比图" Name="Title1" ForeColor="26, 59, 105"></asp:Title>
		</titles>
		<legends>
			<asp:Legend TitleFont="Microsoft Sans Serif, 8pt, style=Bold" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="False" Enabled="True" Name="Default"></asp:Legend>
		</legends>
		<borderskin SkinStyle="Emboss"></borderskin>
		<series>
			<asp:Series Name="前期水位" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240" >
			    <%--<points>
					<asp:DataPoint YValues="6" Label="6" />
					<asp:DataPoint YValues="9" Label="9"/>
					<asp:DataPoint YValues="5" Label="5"/>
					<asp:DataPoint YValues="7.5" />
					<asp:DataPoint YValues="5.69999980926514" />
					<asp:DataPoint YValues="7" />
					<asp:DataPoint YValues="8.5" />
				</points>--%>
			</asp:Series>
			<asp:Series Name="本期水位" BorderColor="180, 26, 59, 105" Color="220, 224, 64, 10"><%--BorderColor="180, 26, 59, 105" Color="220, 252, 180, 65"--%>
			    <%--<points>
					<asp:DataPoint YValues="6" Label="6"/>
					<asp:DataPoint YValues="8" Label="8"/>
					<asp:DataPoint YValues="2" Label="2"/>
					<asp:DataPoint YValues="7" />
					<asp:DataPoint YValues="3" />
					<asp:DataPoint YValues="5" />
					<asp:DataPoint YValues="8" />
				</points>--%>
			</asp:Series>
			<asp:series  ChartArea="ChartArea2" Name="前期埋深" BorderColor="180, 26, 59, 105" Color="5, 100, 146"><%--BorderColor="180, 26, 59, 105"--%>
				<%--<points>
					<asp:datapoint YValues="7" Label="7"/>
					<asp:datapoint YValues="4" Label="4"/>
					<asp:datapoint YValues="5" Label="5"/>
				</points>--%>
			</asp:series>
			<asp:series  ChartArea="ChartArea2" Name="本期埋深" BorderColor="180, 26, 59, 105" Color="220, 252, 180, 65">
				<%--<points>
					<asp:datapoint YValues="4" Label="4"/>
					<asp:datapoint YValues="6" Label="6"/>
					<asp:datapoint YValues="5" Label="5"/>
				</points>--%>
			</asp:series>
		</series>
		<chartareas>
			<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" BackSecondaryColor="White" BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
				<area3dstyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False" WallWidth="0" IsClustered="False" />
				<axisy LineColor="64, 64, 64, 64"  LabelAutoFitMaxFontSize="8">
					<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold"  />
					<MajorGrid LineColor="64, 64, 64, 64" />
				</axisy>
				<axisx LineColor="64, 64, 64, 64"  LabelAutoFitMaxFontSize="8">
					<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold"  />
					<MajorGrid LineColor="64, 64, 64, 64" />
				</axisx>
			</asp:ChartArea>
			<asp:ChartArea Name="ChartArea2" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" BackSecondaryColor="White" BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
				<area3dstyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False" WallWidth="0" IsClustered="False" />
				<axisy LineColor="64, 64, 64, 64"  LabelAutoFitMaxFontSize="8">
					<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold"  />
					<MajorGrid LineColor="64, 64, 64, 64" />
				</axisy>
				<axisx LineColor="64, 64, 64, 64"  LabelAutoFitMaxFontSize="8">
					<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold"  />
					<MajorGrid LineColor="64, 64, 64, 64" />
				</axisx>
			</asp:ChartArea>
		</chartareas>
	</asp:Chart>
    </form>
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <asp:Literal ID="lblJavaScript" EnableViewState="false" runat="server"></asp:Literal>
</body>
</html>
